//
//  DockManager.h
//  McRemoteServer
//
//  Created by Magic on 2/17/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^DockManagerGetIconBlock)(NSData *iconData);

@interface DockManager : NSObject

+ (DockManager *)sharedManager;
- (void)setDockAppName:(NSString *)name path:(NSString *)path;
- (void)setDockAppName:(NSString *)name instance:(NSRunningApplication *)app;
- (void)terminateAppNamed:(NSString *)name;

- (NSData *)iconDataWithAppName:(NSString *)name retina:(BOOL)retina;
- (void)getIconDataWithAppName:(NSString *)name retina:(BOOL)retina finishBlock:(DockManagerGetIconBlock)finishBlock;

- (void)launchAppNamed:(NSString *)name;

@end
